EventApi

interface EventApi

API for registration of config events

Author

fzzyhmstrs

Since

0.5.0

Functions

Link copied to clipboard
abstract fun onRegisteredClient(configId: Identifier, listener: OnRegisteredClientListener)

Registers a listener to the onRegisteredClient event.

Link copied to clipboard
abstract fun onRegisteredServer(configId: Identifier, listener: OnRegisteredServerListener)

Registers a listener to the global onChangedServer event. This will be fired on the logical server after an updated config is prepared for saving.

Link copied to clipboard
abstract fun onSyncClient(listener: OnSyncClientListener)

Registers a listener to the global onSyncClient event. This will be fired on the logical client when a config is synced.

Link copied to clipboard
abstract fun onSyncServer(listener: OnSyncServerListener)

Registers a listener to the global onSyncServer event. This will be fired on the logical server when a config is about to be synced to clients.

Link copied to clipboard
abstract fun onUpdateClient(listener: OnUpdateClientListener)

Registers a listener to the global onChangedClient event. This will be fired on the logical client when a client side config is updated in-game.

Link copied to clipboard
abstract fun onUpdateServer(listener: OnUpdateServerListener)

Registers a listener to the global onChangedServer event. This will be fired on the logical server after an updated config is prepared for saving.